/**
 * @file mock data
 * @author autoresponse
 */

/* eslint-disable fecs-camelcase */

/**
 * 获取 mock 响应数据
 *
 * @param {string} path 请求路径名
 * @param {Object} queryParam 查询参数信息
 * @param {Object} postParam post 的查询参数信息
 * @return {Object}
 */
module.exports = function (path, queryParam, postParam) {
    return {
        // 可以通过该属性来设置响应的延时，也可以设为值为'0,100'，表示随机 0-100ms 的延时，默认 0
        _timeout: 0,

        // 通过该状态来设置响应的 http 的状态码，默认 200
        _status: 200,

        // 对于要响应的 json 数据可以统一放在该字段里，也可以不使用该字段，直接跟 _xx 属性平级放
        _data: {
            "code": "100200",
            "msg": "success",
            "data": {
                "list": [
                    {
                        "createTime": 1494826407,
                        "matchedMoney": 0,
                        "money": 100,
                        "moneyOver": 20,
                        "number": 100,
                        "numberOver": 12,
                        "orderNo": "string",
                        "price": 11,
                        "symbol": "string",
                        "tradeCoinFlag": "MARKET",
                        "tradeCoinStatus": "PROCESSING",
                        "tradeCoinType": "BUY",
                        "tradedNumber": 0,


                        // "numOver": 0.00000,
                        // "createip": "0.0.0.0",
                        // "updateDate": "2016-11-01 10:46:31",
                        // "marketOver": 0.1400000,
                        // "updateip": "0.0.0.0",
                        // "transactionNo": "20161101000130016332011046291553",
                        // "tradeGopType": "BUY",
                        // "version": 2,
                        // "consignStatus": "RECV",
                        // "tradedGop": 0.58000,
                        // "market": 10.0000000,
                        // "numTotal": 0.00000,
                        // "uid": 1,
                        // "price": 0E-7,
                        // "tradeGopStatus": "PROCESSING",
                        // "id": 417,
                        // "tradeGopFlag": "MARKET",
                        // "totalTraded": 9.8600000,
                        // "createDate": "2016-11-01 10:46:30"
                    }
                ],
                "pageNum": 1
            }
        }
    };
};

/* eslint-enable fecs-camelcase */
